package com.pointstar.dp.common.entity;

import lombok.Getter;

/**
 * @author 朱科睿
 */
@Getter
public enum ResultCode {
    // 正确请求
    SUCCESS(200, "success"),
    // 请求错误
    ERROR(500, "failure");
    /** 主键 */
    private final Integer code;
    /** 描述 */
    private final String desc;

    ResultCode(final Integer code, final String desc) {
        this.code = code;
        this.desc = desc;
    }
}
